
import { useState } from "react"
import "./index.less"

export default function SPDF() {

    let [src, setSrc] = useState("http://localhost:8896/download/pdf/b009c902-2dac-4b5c-8e75-68024e43659b.pdf")

    return (
        <div className="SPDF">
            <iframe src={'./pdf/web/viewer.html?file=' + encodeURIComponent(src)} width="100%" height="100%"></iframe>
        </div >
    )
}